from .models import NewsChannel

def getChannels(request):
    """获取新闻⾸⻚所有频道别"""

    channels = NewsChannel.objects.order_by('id')

    return {'channels':channels}